<template>
	<view>
		<scroll-view scroll-y="true">
			<table class="istable">
				<thead>
					<tr>
						<th>旷工</th>
						<th>15分钟算力</th>
						<th>24小时算力</th>
						<th>拒绝率</th>
					</tr>
				</thead>
				<tbody>
					<tr v-for="(item,index) in 20" :key="index">
						<td>192x10x19x70</td>
						<td>114.75 <span>H/s</span> </td>
						<td>3 <span>H/s</span> </td>
						<td>0.01<span>%</span></td>
					</tr>
				</tbody>
			</table>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabheight:0,
				onlineCode:-1,
				list:[],
				group_id:-1,
				page:1
			}
		},
		created(){
			// #ifdef APP-PLUS
			plus.screen.lockOrientation("landscape-primary");//锁定横屏
			plus.navigator.setFullscreen(true);//隐藏状态栏(应用全屏:只能隐藏状态栏，标题栏和虚拟返回键都还可以显示)
			// #endif
		},
		beforeDestroy(){
			// #ifdef APP-PLUS
			plus.screen.lockorientation("portrait-primary");//销毁时恢复竖屏
			plus.navigator.setFullscreen(false);//隐藏状态栏(应用全屏:只能隐藏状态栏，标题栏和虚拟返回键都还可以显示)
			// #endif
		},
		computed: {
			tabheight() {
				return uni.getSystemInfoSync().windowHeight
			}
		},
		onLoad() {
			// uni.setPageOrientation({
			//     orientation: 'landscape' // 横屏
			//   });
			this.getUrlList()
		},
		methods: {
			getUrlList(){
				this.$fun.ajax.post('butt/userSnList', {
					type: 1,
					page:this.page,
					limit:10,
					onlineCode: this.onlineCode,
					group_id: this.group_id,
					pipeType: -1,
					vlan: -1
				}).then(res => {
					this.equipmentInfo = res.data
					if (res.data.list.length > 0) {
						this.list.push(...res.data.list);
						// this.addressList = res.data
						this.page++
					} else {
						if (this.page != 1) {
							this.$fun.msg(this.$t('nomore'))
						}
					}
				})
			}
		}
	}
</script>

<style lang="scss">
.istable{
		width: 100%;
		background-color: #FFFFFF;
		position: relative;
		thead{
			position: sticky;
			top: 0;
			z-index: 999;
			background-color: #FFFFFF;
		}
		th{
			font-size: 24rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #8d8d8d;
			text-align: center;
			height: 100rpx;
			line-height: 100rpx;
			// background-color: #FFFFFF;
			border-bottom: 1rpx solid #E5E5E5;
		}
		td{
			font-size: 24rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #383838;
			text-align: center;
			height: 60rpx;
			line-height: 80rpx;
			// background-color: #FFFFFF;
			border-bottom: 1rpx solid #f4f4f4;
		}
		span{
			color: #a8a8a8;
			margin-left: 10rpx;
			font-size: 22rpx;
			font-weight: 200;
		}
	}
</style>
